package com.cwd.arm.domain.repository.impl;

import com.cwd.arm.infrastructure.dao.DictDao;
import com.cwd.arm.infrastructure.po.DictPo;
import com.cwd.arm.domain.entity.DictEntity;
import com.cwd.arm.domain.repository.DictRepository;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
* Description:数据字典
* Created on 2021年11月19日
* @author  yan
*/
@Repository
public class DictRepositoryImpl implements DictRepository{

    @Autowired
    private DictDao dao;

    private DictPo convertToDictPo(DictEntity entity){
        DictPo DictPo = new DictPo();
        BeanUtils.copyProperties(entity,DictPo);
        return DictPo;
    }

}
